package org.bbs.demo.concern.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.bbs.demo.concern.dto.InfoDto;
import org.bbs.demo.user.model.User;

import java.util.ArrayList;

@Mapper
public interface ShowConcernDao {
    @Select("select user_id from follower where follow_id = #{follow_id}")
    public ArrayList<String> findConcern(String follow_id);

    @Select("select user_id from follower where follow_id = #{follow_id} and special = true")
    public ArrayList<String> findSpecial(String follow_id);

    @Select("select u_name,signature,head from bbsusers where user_id = #{user_id}")
    public InfoDto getUserInfo(String user_id);

    @Select("select * from bbsusers where user_id = #{user_id}")
    public User findUser(String user_id);
}
